package com.fm.openinstall.a;

import java.util.concurrent.*;
import java.util.*;
import com.fm.openinstall.c.*;

class p extends s
{
    final /* synthetic */ f a;

    p(final f a, final ExecutorService executorService, final q q, final long n) {
        this.a = a;
        super(executorService, q, n);
    }

    @Override
    public b a(final long n) {
        b b;
        if ((b = this.a.a(n)) == null) {
            b b2;
            String s;
            if (!this.a.g.f()) {
                b2 = new b(com.fm.openinstall.c.c.c, -20);
                s = "RegisterStatsEnabled is disable";
            }
            else {
                if (com.fm.openinstall.c.d.a(this.a.k)) {
                    final a b3 = this.a.b();
                    final String a = this.a.a("stats/register");
                    final f a2 = this.a;
                    b = b3.a(a, a2.a(a2.k), Collections.emptyMap());
                    this.a.b(b.e());
                    return b;
                }
                b2 = new b(com.fm.openinstall.c.c.b, -10);
                s = "network unavailable";
            }
            b2.b(s);
            return b2;
        }
        return b;
    }
}
